import request from '@/utils/request'

// 查询物品总库详情列表
export function listAllItem(query) {
  return request({
    url: '/allItem/allItem/list',
    method: 'get',
    params: query
  })
}

// 查询物品总库详情详细
export function getAllItem(id) {
  return request({
    url: '/allItem/allItem/' + id,
    method: 'get'
  })
}

// 新增物品总库详情
export function addAllItem(data) {
  return request({
    url: '/allItem/allItem',
    method: 'post',
    data: data
  })
}

// 修改物品总库详情
export function updateAllItem(data) {
  return request({
    url: '/allItem/allItem',
    method: 'put',
    data: data
  })
}

// 删除物品总库详情
export function delAllItem(id) {
  return request({
    url: '/allItem/allItem/' + id,
    method: 'delete'
  })
}
